/**
 *
 * @author AD_DA
 */
package Bean;

import java.util.ArrayList;
import java.util.List;


public class BMenu {
    private List<BSubMenu> subMenus;
    private int IDSupMenu;    
    private String NameSupMenu;
    private Boolean State;
    public BMenu(){
    subMenus=new ArrayList<BSubMenu>();
    IDSupMenu=0;    
    NameSupMenu="";
    State=false;
    }

    /**
     * @return the subMenus
     */
    public String getIDSubMenu(int IDSubMenu){
        String is=null;
        for (int i=0;i<subMenus.size();i++) {
            if(IDSubMenu==subMenus.get(i).getIDSubMenu())
            {
                is=subMenus.get(i).getIDAlias();
                break;
            }
        }
        return is;
    }
    public List<BSubMenu> getSubMenus() {
        return subMenus;
    }

    /**
     * @param subMenus the subMenus to set
     */
    public void setSubMenus(List<BSubMenu> subMenus) {
        this.subMenus = subMenus;
    }

    /**
     * @return the IDSupMenu
     */
    public int getIDSupMenu() {
        return IDSupMenu;
    }

    /**
     * @param IDSupMenu the IDSupMenu to set
     */
    public void setIDSupMenu(int IDSupMenu) {
        this.IDSupMenu = IDSupMenu;
    }

    /**
     * @return the NameSupMenu
     */
    public String getNameSupMenu() {
        return NameSupMenu;
    }

    /**
     * @param NameSupMenu the NameSupMenu to set
     */
    public void setNameSupMenu(String NameSupMenu) {
        this.NameSupMenu = NameSupMenu;
    }

    /**
     * @return the State
     */
    public Boolean getState() {
        return State;
    }

    /**
     * @param State the State to set
     */
    public void setState(Boolean State) {
        this.State = State;
    }
}
